package com.ggy.babybed.network;

import android.content.Context;
import android.util.Log;

import com.ggy.babybed.wilddog.CustomWilddog;
import com.ggy.babybed.wilddog.WildDogDataChange;

import java.util.HashMap;



/**
 * Created by sizi on 2016/5/17.
 */
public class WilddogService implements INetWorkService {

    public static final String TAG="WilddogService";

    private Context mContext;
    private CustomWilddog mCustomWilddog;

    public WilddogService(Context context){
        this.mContext=context;
        mCustomWilddog=new CustomWilddog(context);

    }
    @Override
    public boolean setLed(boolean status) {
        return false;
    }

    @Override
    public int getWenduStatus() {
        return 0;
    }

    @Override
    public int getShiduStatus() {
        return 0;
    }

    @Override
    public boolean addNodeLisen(String node,WildDogDataChange dogDataChange){
        mCustomWilddog.addListenForNode(node,dogDataChange);
        return true;
    }

    @Override
    public void rmNodeListen(String node, WildDogDataChange dogDataChange) {
        mCustomWilddog.rmListenForNode(node,dogDataChange);
    }

    @Override
    public boolean startNodeListen(String node){
        return mCustomWilddog.startListenForNode(node);
    }

    @Override
    public boolean stopNodeListen(String node) {
        return mCustomWilddog.stopListenForNode(node);
    }

}
